import request from '@sc/request';

export async function postSaveForm(data) {
  return request(`/ms/api/v1/uc/company/saveOrUpdate`, {
    method: 'POST',
    data,
  });
}
export async function postSubmitForm(data) {
  return request(`/ms/api/v1/uc/companyApply/save`, {
    method: 'POST',
    data,
  });
}
export async function getForm(temId) {
  return request(`/ms/api/v1/uc/company/query`, {
    method: 'GET',
    data: {
      id: temId,
      state: 6,
      // 6：暂存
    },
  });
}

export async function postDeleteForm(companyId) {
  return request(`/ms/api/v1/uc/company/delete?companyId=${companyId}`, {
    method: 'GET',
  });
}
